﻿namespace MicroCloud.Audit
{
    [Dependency(ServiceLifetime.Scoped, AddSelf = true)]
    public class AuditPropertyStore
    {
        private readonly IRepository<AuditProperty, long> auditPropertyRepository;

        /// <summary>
        /// 初始化一个Article存储功能 <see cref="AuditEntityStore"/> 的新实例
        /// </summary>
        public AuditPropertyStore(IRepository<AuditProperty, long> auditPropertyRepository)
        {
            this.auditPropertyRepository = auditPropertyRepository;
        }

        public IQueryable<AuditProperty> AuditProperties => auditPropertyRepository.Query();

    }
}